
package innerclass;
interface IMessage {
    void fun();
}
public class NonNameClass {
    public static void main(String[] args) {
        IMessage msg = new IMessage() {
            @Override
            public void fun() {
                System.out.println("hello inner class");
            }
        };
        msg.fun();
    }
}

